package org.opsli.modulars.business.historyTimeTrail.service.impl;

import org.opsli.api.wrapper.business.realTimeTrail.HistoryTimeTrailModel;
import org.opsli.api.wrapper.business.realTimeTrail.RealTimeTrailModel;
import org.opsli.core.base.service.impl.CrudServiceImpl;
import org.opsli.modulars.business.historyTimeTrail.entity.HistoryTimeTrail;
import org.opsli.modulars.business.historyTimeTrail.mapper.HistoryTimeTrailMapper;
import org.opsli.modulars.business.historyTimeTrail.service.HistoryTimeTrailService;
import org.opsli.modulars.business.realTimeTrail.entity.RealTimeTrail;
import org.opsli.modulars.business.realTimeTrail.mapper.RealTimeTrailMapper;
import org.opsli.modulars.business.realTimeTrail.service.RealTimeTrailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HistoryTimeTrailServiceImpl extends CrudServiceImpl<HistoryTimeTrailMapper, HistoryTimeTrail, HistoryTimeTrailModel>
        implements HistoryTimeTrailService {

    @Autowired(required = false)
    private HistoryTimeTrailMapper mapper;

    @Override
    public List<HistoryTimeTrail> findUserName(String devid) {
        return mapper.findUserName(devid);
    }

    @Override
    public List<HistoryTimeTrail> findTask(String devid,String username) {
        return mapper.findTask(devid,username);
    }

    @Override
    public List<HistoryTimeTrail> fingTrail(String sign) {
        return mapper.fingTrail(sign);
    }
}
